﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Practices.Unity;
using Skynet.WebAdministracion.Views.AdministrationMgmView;
using Skynet.WebFoundation.Constants;

namespace Skynet.WebSite.Administration
{
    public partial class AdministrationMgmView : Infrastructure.Web.Views.Page, IAdministrationMgmView
    {
        private AdministrationMgmPresenter _Presenter;
        [Dependency]
        public AdministrationMgmPresenter Presenter
        {
            get { return _Presenter; }
            set
            {
                _Presenter = value;
                this._Presenter.View = this;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                this.Presenter.OnViewInitialized();
            }
            this.Presenter.OnViewLoaded();
        }
        
        protected void designExam_Click(object sender, EventArgs e)
        {
            this.Presenter.NavigationService.NavigateRoute(RoutesNames.DesigMgmExams);
        }
        protected void designCustomer_Click(object sender, EventArgs e)
        {
            this.Presenter.NavigationService.NavigateRoute(RoutesNames.DesignCustomerAdmin);
        }
        protected void designExamActivation_Click(object sender, EventArgs e)
        {
            this.Presenter.NavigationService.NavigateRoute(RoutesNames.DesignExamActivation);
        }
        protected void lbOraganization_Click(object sender, EventArgs e)
        {
            this.Presenter.NavigationService.NavigateRoute(RoutesNames.OrganizationMgm);
        }
    }
}